import type { GreasyForkElements } from '../../../../../../../../../types/constants/personalization/greasy_fork'
import {
  PAGE_ELEMENTS,
  SUPPORTED_PLATFORMS,
} from '../../../../../../../../../types/constants'

// 测试链接：https://greasyfork.org/zh-CN/help/rewriting
export class RewritingPage {
  elements: GreasyForkElements = PAGE_ELEMENTS[SUPPORTED_PLATFORMS.GREASY_FORK]
  private static instance: RewritingPage

  /**
   * 获取单例实例
   */
  public static getInstance(): RewritingPage {
    if (!RewritingPage.instance) {
      RewritingPage.instance = new RewritingPage()
    }
    return RewritingPage.instance
  }

  init(): void {
  }

  getMainStyles(): string {
    return ``
  }
}
